<?php /* Smarty version 2.6.16, created on 2009-04-16 09:00:26
         compiled from ApproveVideos.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'ApproveVideos.html', 19, false),array('function', 'url', 'ApproveVideos.html', 33, false),array('function', 'img', 'ApproveVideos.html', 74, false),array('modifier', 'escape', 'ApproveVideos.html', 72, false),array('modifier', 'truncate', 'ApproveVideos.html', 72, false),array('modifier', 'date_format', 'ApproveVideos.html', 81, false),)), $this); ?>
<?php echo '
<script type="text/javascript">

function CheckAll(sForm, sElems, stat){
    var oForm = document.getElementById(sForm);
    var aCheckBox = document.getElementsByName(sElems);
    for (i=0; i<oForm.elements.length;i++){
        if ( oForm.elements[i].type == "checkbox" ){
            oForm.elements[i].checked = stat;
        }
    }
}

</script>
'; ?>


<?php if ($this->_tpl_vars['bIsDeleted']): ?>
<div class="message_info" style="font-size:10pt;">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_videos_deleted'), $this);?>

	<br />
	<br />
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['sDoApprove']): ?>
<div class="message_info" style="font-size:10pt;">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_videos_approved'), $this);?>

	<br />
	<br />
</div>
<?php endif; ?>

<form method="post" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" id="Video_form">
<table  class=forumline cellSpacing=0 width="100%" id="song_table">
<tr>
	<td class="row-header" colspan="8"><span><?php echo smarty_function_language(array('text' => 'Mod_Video.videos_for_approval'), $this);?>
</span></td>
</tr>
<?php if (count ( $this->_tpl_vars['aItems'] ) > 0): ?>
<tr>
	<th style="text-align:center;" class="row1">
		<input id="All_videos" type="checkbox" onclick="CheckAll('Video_form','sel_videos[]', document.getElementById('All_videos').checked);">
	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_head_type'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_head_title'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_head_from'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_head_added'), $this);?>

	</th>
	<th>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_head_actions'), $this);?>

	</th>
</tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aItem']):
?>
<tr>
	<td class="row1" style="text-align:center;">
		<input type="checkbox" name="sel_videos[]" value="<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" />
	</td>
	<td class="row1" style="text-align:center;">
		<?php if ($this->_tpl_vars['aItem']['vid_url']): ?>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_type_stream'), $this);?>

		<?php else: ?>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_type_uploaded'), $this);?>

		<?php endif; ?>
	</td>
	<td class="row1">
		<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['aItem']['vid_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, '80') : smarty_modifier_truncate($_tmp, '80')); ?>

		<div style="text-align:center;">
		<?php echo smarty_function_img(array('max_width' => '50','src' => ($this->_tpl_vars['sGImageUrl'])."pending_".($this->_tpl_vars['aItem']['vid_id']).".jpg",'src_def' => "design/pic/noimage_50.jpg",'alt' => "",'id' => 'mainimage'), $this);?>

		</div>
	</td>
	<td class="row1">
		<a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
"><?php echo $this->_tpl_vars['aItem']['user']; ?>
</a>
	</td>
	<td class="row1" style="text-align:center;">
		<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['vid_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['sDateTimeFormat']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['sDateTimeFormat'])); ?>

	</td>
	<td class="row1" style="text-align:center;">
		[ <a href="javascript:void(0);" onclick='window.open("<?php echo smarty_function_url(array('link' => "admin.popup.video",'id' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
", "video_Player", "width=460,height=360");'><?php echo smarty_function_language(array('text' => 'Mod_Video.admin_view'), $this);?>
</a> ]
		[ <a href="<?php echo smarty_function_url(array('link' => 'admin.sections.video','avideo' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Video.admin_approve'), $this);?>
</a> ]
		[ <a href="<?php echo smarty_function_url(array('link' => 'admin.sections.video','dvideo' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Video.delete'), $this);?>
</a> ]
	</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
	<td colspan="6" align="left" class="catBottom">
		<input type="submit" value="<?php echo smarty_function_language(array('text' => 'Mod_Video.delete_selected'), $this);?>
" name="delete" />
		<input type="submit" value="<?php echo smarty_function_language(array('text' => 'Mod_Video.approve_selected'), $this);?>
" name="approve" />
	</td>
</tr>
<?php else: ?>
<tr>
	<td>
	<div class="message_info" style="font-size:10pt;">
		<?php if ($this->_tpl_vars['bApprovalSetting']): ?>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_no_videos_uploaded'), $this);?>

		<?php else: ?>
		<?php echo smarty_function_language(array('text' => 'Mod_Video.admin_approval_info'), $this);?>

		<?php endif; ?>
	</div>
	</td>
	</div>
</tr>
<?php endif; ?>
</table>
</form>